            <div class="wrapper">
                <div class="row">
                    <div class="col-sm-12">
                        <section class="panel">
                            <header class="panel-heading">
                                合作伙伴
                                <span class="tools pull-right">
									<a href="javascript:;" class="fa fa-chevron-down"></a>
									<a href="javascript:;" class="fa fa-times"></a>
								</span>
                            </header>
                            <div class="panel-body">
                                <div id="gallery" class="media-gal">
                                    {foreach $list as $key => $value}
                                        <div class="images item">
                                            <input type="hidden" value="{$value['id']}" id="pid" name="pid">
                                            <a href="#myModal" data-toggle="modal" onclick="delPareners(this)"><img src="{$value['logo']}" style="height: 100px;" alt="<?=date('Y-m-d H:i:s',$value['createtime'])?>"/></a>
                                        </div>
                                    {/foreach}
                                </div>
                                <div class="col-md-12 text-center clearfix">
                                    {$list->render()}
                                </div>
                                
                            </div>
                        </section>
                    </div>
                </div>
            </div>
<script type="text/javascript">
    function delPareners(obj){
        var mymessage=confirm("确认删除该合作伙伴吗？");
        if(mymessage == true){
            id = $(obj).parent().find("#pid").val();
            if(id == ''){
                alert('删除失败');
            }else{
                $.post('/admin/partners/delPartners',{pid:id},function(data){
                    if(data.code == 0){
                        $(obj).parent().css('display','none');
                    }else{
                        alert('删除失败，请刷新重试');
                    }
                },'json');
            }
        }
    }
</script>
